package com.ecoolex.hotel.saas.core.mapper;

import com.ecoolex.framework.common.annotation.Description;
import com.ecoolex.hotel.saas.entity.PresaleCoupon;
import com.ecoolex.hotel.saas.entity.PresaleCouponExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface PresaleCouponMapper {
    long countByExample(PresaleCouponExample example);

    int deleteByExample(PresaleCouponExample example);

    int deleteByPrimaryKey(Integer preCouponId);

    int insert(PresaleCoupon record);

    int insertSelective(@Param("record") PresaleCoupon record, @Param("selective") PresaleCoupon.Column ... selective);

    PresaleCoupon selectOneByExample(PresaleCouponExample example);

    PresaleCoupon selectOneByExampleWithBLOBs(PresaleCouponExample example);

    List<PresaleCoupon> selectByExampleWithBLOBs(PresaleCouponExample example);

    List<PresaleCoupon> selectByExample(PresaleCouponExample example);

    PresaleCoupon selectByPrimaryKey(Integer preCouponId);

    PresaleCoupon selectByPrimaryKeyWithLogicalDelete(@Param("preCouponId") Integer preCouponId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") PresaleCoupon record, @Param("example") PresaleCouponExample example, @Param("selective") PresaleCoupon.Column ... selective);

    int updateByExampleWithBLOBs(@Param("record") PresaleCoupon record, @Param("example") PresaleCouponExample example);

    int updateByExample(@Param("record") PresaleCoupon record, @Param("example") PresaleCouponExample example);

    int updateByPrimaryKeySelective(@Param("record") PresaleCoupon record, @Param("selective") PresaleCoupon.Column ... selective);

    int updateByPrimaryKeyWithBLOBs(PresaleCoupon record);

    int updateByPrimaryKey(PresaleCoupon record);

    int batchInsert(@Param("list") List<PresaleCoupon> list);

    int batchInsertSelective(@Param("list") List<PresaleCoupon> list, @Param("selective") PresaleCoupon.Column ... selective);

    int logicalDeleteByExample(@Param("example") PresaleCouponExample example);

    int logicalDeleteByPrimaryKey(Integer preCouponId);
}